<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<jsp:include page="../common/top.jsp"/>

<p>
<table width="100%" cellspacing="5">
	<tr>
		<td class="displayLabelDash" width="20%">Viewing Transactions from</td>
		<td class="displayValue"><fmt:formatDate pattern="EEE dd MMM yyyy HH:mm:ss" value="${fromDate}" /> to : <fmt:formatDate pattern="EEE dd MMM yyyy HH:mm:ss" value="${toDate}" /></td>
	</tr>
	<tr>
		<td class="displayLabel">Executive</td>
		<td class="displayValue">${executive.firstName}&nbsp;${executive.lastName}</td>
	</tr>
</table>
<br>
<!--Paging-->
<c:set var="currentAction" scope="session" value="/struts/dashboard/dashboardAction.do"/>
<c:set var="nextMethod" scope="session" value="searchNext"/>
<c:set var="previousMethod" scope="session" value="searchPrevious"/>
<jsp:include page="../common/paging.jsp"/>

	<display:table name="txListing" width="100%">
		<display:setProperty name="css.table" value="searchTable" />
		<display:column property="transactionId" title="Transaction Id"  sortable="false" headerClass="false" align="left"/>	
		<display:column property="transactionDate" title="Transaction Time"  sortable="false" headerClass="false" align="left"/>	
		<display:column property="transactionAmount" title="Transaction Amt"  sortable="false" headerClass="false" align="left"/>	
		<display:column property="registrant.firstName" title="Registrant First Name"  sortable="false" headerClass="false" align="left"/>	
		<display:column property="registrant.lastName" title="Registrant Last Name"  sortable="false" headerClass="false" align="left"/>	
	</display:table>
<!--Paging-->
<jsp:include page="../common/paging.jsp"/>

	<c:choose>
		<c:when test="${sessionScope.ejcSession.currentAction=='Update Executive'}">
			<p class="displayValue">
			Click <html:link page="/struts/admin/updateExecutiveAction.do?methodToCall=preUpdateExec">here</html:link> to return to executive.
			</p>
		</c:when>
		<c:otherwise>
			<p class="displayValue">
			Click <html:link page="/struts/dashboard/dashboardAction.do?methodToCall=loadDash">here</html:link> to return to dashboard.
			</p>
		</c:otherwise>
	</c:choose>
<jsp:include page="../common/bottom.jsp" />

